package cn.asiainfo.apportion.po;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class BuApportionColumnDefinitionExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public BuApportionColumnDefinitionExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andColumnSeqIsNull() {
            addCriterion("COLUMN_SEQ is null");
            return (Criteria) this;
        }

        public Criteria andColumnSeqIsNotNull() {
            addCriterion("COLUMN_SEQ is not null");
            return (Criteria) this;
        }

        public Criteria andColumnSeqEqualTo(Integer value) {
            addCriterion("COLUMN_SEQ =", value, "columnSeq");
            return (Criteria) this;
        }

        public Criteria andColumnSeqNotEqualTo(Integer value) {
            addCriterion("COLUMN_SEQ <>", value, "columnSeq");
            return (Criteria) this;
        }

        public Criteria andColumnSeqGreaterThan(Integer value) {
            addCriterion("COLUMN_SEQ >", value, "columnSeq");
            return (Criteria) this;
        }

        public Criteria andColumnSeqGreaterThanOrEqualTo(Integer value) {
            addCriterion("COLUMN_SEQ >=", value, "columnSeq");
            return (Criteria) this;
        }

        public Criteria andColumnSeqLessThan(Integer value) {
            addCriterion("COLUMN_SEQ <", value, "columnSeq");
            return (Criteria) this;
        }

        public Criteria andColumnSeqLessThanOrEqualTo(Integer value) {
            addCriterion("COLUMN_SEQ <=", value, "columnSeq");
            return (Criteria) this;
        }

        public Criteria andColumnSeqIn(List<Integer> values) {
            addCriterion("COLUMN_SEQ in", values, "columnSeq");
            return (Criteria) this;
        }

        public Criteria andColumnSeqNotIn(List<Integer> values) {
            addCriterion("COLUMN_SEQ not in", values, "columnSeq");
            return (Criteria) this;
        }

        public Criteria andColumnSeqBetween(Integer value1, Integer value2) {
            addCriterion("COLUMN_SEQ between", value1, value2, "columnSeq");
            return (Criteria) this;
        }

        public Criteria andColumnSeqNotBetween(Integer value1, Integer value2) {
            addCriterion("COLUMN_SEQ not between", value1, value2, "columnSeq");
            return (Criteria) this;
        }

        public Criteria andColumnNameIsNull() {
            addCriterion("COLUMN_NAME is null");
            return (Criteria) this;
        }

        public Criteria andColumnNameIsNotNull() {
            addCriterion("COLUMN_NAME is not null");
            return (Criteria) this;
        }

        public Criteria andColumnNameEqualTo(String value) {
            addCriterion("COLUMN_NAME =", value, "columnName");
            return (Criteria) this;
        }

        public Criteria andColumnNameNotEqualTo(String value) {
            addCriterion("COLUMN_NAME <>", value, "columnName");
            return (Criteria) this;
        }

        public Criteria andColumnNameGreaterThan(String value) {
            addCriterion("COLUMN_NAME >", value, "columnName");
            return (Criteria) this;
        }

        public Criteria andColumnNameGreaterThanOrEqualTo(String value) {
            addCriterion("COLUMN_NAME >=", value, "columnName");
            return (Criteria) this;
        }

        public Criteria andColumnNameLessThan(String value) {
            addCriterion("COLUMN_NAME <", value, "columnName");
            return (Criteria) this;
        }

        public Criteria andColumnNameLessThanOrEqualTo(String value) {
            addCriterion("COLUMN_NAME <=", value, "columnName");
            return (Criteria) this;
        }

        public Criteria andColumnNameLike(String value) {
            addCriterion("COLUMN_NAME like", value, "columnName");
            return (Criteria) this;
        }

        public Criteria andColumnNameNotLike(String value) {
            addCriterion("COLUMN_NAME not like", value, "columnName");
            return (Criteria) this;
        }

        public Criteria andColumnNameIn(List<String> values) {
            addCriterion("COLUMN_NAME in", values, "columnName");
            return (Criteria) this;
        }

        public Criteria andColumnNameNotIn(List<String> values) {
            addCriterion("COLUMN_NAME not in", values, "columnName");
            return (Criteria) this;
        }

        public Criteria andColumnNameBetween(String value1, String value2) {
            addCriterion("COLUMN_NAME between", value1, value2, "columnName");
            return (Criteria) this;
        }

        public Criteria andColumnNameNotBetween(String value1, String value2) {
            addCriterion("COLUMN_NAME not between", value1, value2, "columnName");
            return (Criteria) this;
        }

        public Criteria andColumnDefiniitionIsNull() {
            addCriterion("COLUMN_DEFINIITION is null");
            return (Criteria) this;
        }

        public Criteria andColumnDefiniitionIsNotNull() {
            addCriterion("COLUMN_DEFINIITION is not null");
            return (Criteria) this;
        }

        public Criteria andColumnDefiniitionEqualTo(String value) {
            addCriterion("COLUMN_DEFINIITION =", value, "columnDefiniition");
            return (Criteria) this;
        }

        public Criteria andColumnDefiniitionNotEqualTo(String value) {
            addCriterion("COLUMN_DEFINIITION <>", value, "columnDefiniition");
            return (Criteria) this;
        }

        public Criteria andColumnDefiniitionGreaterThan(String value) {
            addCriterion("COLUMN_DEFINIITION >", value, "columnDefiniition");
            return (Criteria) this;
        }

        public Criteria andColumnDefiniitionGreaterThanOrEqualTo(String value) {
            addCriterion("COLUMN_DEFINIITION >=", value, "columnDefiniition");
            return (Criteria) this;
        }

        public Criteria andColumnDefiniitionLessThan(String value) {
            addCriterion("COLUMN_DEFINIITION <", value, "columnDefiniition");
            return (Criteria) this;
        }

        public Criteria andColumnDefiniitionLessThanOrEqualTo(String value) {
            addCriterion("COLUMN_DEFINIITION <=", value, "columnDefiniition");
            return (Criteria) this;
        }

        public Criteria andColumnDefiniitionLike(String value) {
            addCriterion("COLUMN_DEFINIITION like", value, "columnDefiniition");
            return (Criteria) this;
        }

        public Criteria andColumnDefiniitionNotLike(String value) {
            addCriterion("COLUMN_DEFINIITION not like", value, "columnDefiniition");
            return (Criteria) this;
        }

        public Criteria andColumnDefiniitionIn(List<String> values) {
            addCriterion("COLUMN_DEFINIITION in", values, "columnDefiniition");
            return (Criteria) this;
        }

        public Criteria andColumnDefiniitionNotIn(List<String> values) {
            addCriterion("COLUMN_DEFINIITION not in", values, "columnDefiniition");
            return (Criteria) this;
        }

        public Criteria andColumnDefiniitionBetween(String value1, String value2) {
            addCriterion("COLUMN_DEFINIITION between", value1, value2, "columnDefiniition");
            return (Criteria) this;
        }

        public Criteria andColumnDefiniitionNotBetween(String value1, String value2) {
            addCriterion("COLUMN_DEFINIITION not between", value1, value2, "columnDefiniition");
            return (Criteria) this;
        }

        public Criteria andApportionItemIsNull() {
            addCriterion("APPORTION_ITEM is null");
            return (Criteria) this;
        }

        public Criteria andApportionItemIsNotNull() {
            addCriterion("APPORTION_ITEM is not null");
            return (Criteria) this;
        }

        public Criteria andApportionItemEqualTo(Long value) {
            addCriterion("APPORTION_ITEM =", value, "apportionItem");
            return (Criteria) this;
        }

        public Criteria andApportionItemNotEqualTo(Long value) {
            addCriterion("APPORTION_ITEM <>", value, "apportionItem");
            return (Criteria) this;
        }

        public Criteria andApportionItemGreaterThan(Long value) {
            addCriterion("APPORTION_ITEM >", value, "apportionItem");
            return (Criteria) this;
        }

        public Criteria andApportionItemGreaterThanOrEqualTo(Long value) {
            addCriterion("APPORTION_ITEM >=", value, "apportionItem");
            return (Criteria) this;
        }

        public Criteria andApportionItemLessThan(Long value) {
            addCriterion("APPORTION_ITEM <", value, "apportionItem");
            return (Criteria) this;
        }

        public Criteria andApportionItemLessThanOrEqualTo(Long value) {
            addCriterion("APPORTION_ITEM <=", value, "apportionItem");
            return (Criteria) this;
        }

        public Criteria andApportionItemIn(List<Long> values) {
            addCriterion("APPORTION_ITEM in", values, "apportionItem");
            return (Criteria) this;
        }

        public Criteria andApportionItemNotIn(List<Long> values) {
            addCriterion("APPORTION_ITEM not in", values, "apportionItem");
            return (Criteria) this;
        }

        public Criteria andApportionItemBetween(Long value1, Long value2) {
            addCriterion("APPORTION_ITEM between", value1, value2, "apportionItem");
            return (Criteria) this;
        }

        public Criteria andApportionItemNotBetween(Long value1, Long value2) {
            addCriterion("APPORTION_ITEM not between", value1, value2, "apportionItem");
            return (Criteria) this;
        }

        public Criteria andSplitTypeIsNull() {
            addCriterion("SPLIT_TYPE is null");
            return (Criteria) this;
        }

        public Criteria andSplitTypeIsNotNull() {
            addCriterion("SPLIT_TYPE is not null");
            return (Criteria) this;
        }

        public Criteria andSplitTypeEqualTo(Short value) {
            addCriterion("SPLIT_TYPE =", value, "splitType");
            return (Criteria) this;
        }

        public Criteria andSplitTypeNotEqualTo(Short value) {
            addCriterion("SPLIT_TYPE <>", value, "splitType");
            return (Criteria) this;
        }

        public Criteria andSplitTypeGreaterThan(Short value) {
            addCriterion("SPLIT_TYPE >", value, "splitType");
            return (Criteria) this;
        }

        public Criteria andSplitTypeGreaterThanOrEqualTo(Short value) {
            addCriterion("SPLIT_TYPE >=", value, "splitType");
            return (Criteria) this;
        }

        public Criteria andSplitTypeLessThan(Short value) {
            addCriterion("SPLIT_TYPE <", value, "splitType");
            return (Criteria) this;
        }

        public Criteria andSplitTypeLessThanOrEqualTo(Short value) {
            addCriterion("SPLIT_TYPE <=", value, "splitType");
            return (Criteria) this;
        }

        public Criteria andSplitTypeIn(List<Short> values) {
            addCriterion("SPLIT_TYPE in", values, "splitType");
            return (Criteria) this;
        }

        public Criteria andSplitTypeNotIn(List<Short> values) {
            addCriterion("SPLIT_TYPE not in", values, "splitType");
            return (Criteria) this;
        }

        public Criteria andSplitTypeBetween(Short value1, Short value2) {
            addCriterion("SPLIT_TYPE between", value1, value2, "splitType");
            return (Criteria) this;
        }

        public Criteria andSplitTypeNotBetween(Short value1, Short value2) {
            addCriterion("SPLIT_TYPE not between", value1, value2, "splitType");
            return (Criteria) this;
        }

        public Criteria andFairValueIsNull() {
            addCriterion("FAIR_VALUE is null");
            return (Criteria) this;
        }

        public Criteria andFairValueIsNotNull() {
            addCriterion("FAIR_VALUE is not null");
            return (Criteria) this;
        }

        public Criteria andFairValueEqualTo(BigDecimal value) {
            addCriterion("FAIR_VALUE =", value, "fairValue");
            return (Criteria) this;
        }

        public Criteria andFairValueNotEqualTo(BigDecimal value) {
            addCriterion("FAIR_VALUE <>", value, "fairValue");
            return (Criteria) this;
        }

        public Criteria andFairValueGreaterThan(BigDecimal value) {
            addCriterion("FAIR_VALUE >", value, "fairValue");
            return (Criteria) this;
        }

        public Criteria andFairValueGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("FAIR_VALUE >=", value, "fairValue");
            return (Criteria) this;
        }

        public Criteria andFairValueLessThan(BigDecimal value) {
            addCriterion("FAIR_VALUE <", value, "fairValue");
            return (Criteria) this;
        }

        public Criteria andFairValueLessThanOrEqualTo(BigDecimal value) {
            addCriterion("FAIR_VALUE <=", value, "fairValue");
            return (Criteria) this;
        }

        public Criteria andFairValueIn(List<BigDecimal> values) {
            addCriterion("FAIR_VALUE in", values, "fairValue");
            return (Criteria) this;
        }

        public Criteria andFairValueNotIn(List<BigDecimal> values) {
            addCriterion("FAIR_VALUE not in", values, "fairValue");
            return (Criteria) this;
        }

        public Criteria andFairValueBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("FAIR_VALUE between", value1, value2, "fairValue");
            return (Criteria) this;
        }

        public Criteria andFairValueNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("FAIR_VALUE not between", value1, value2, "fairValue");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("UPDATE_TIME is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("UPDATE_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(String value) {
            addCriterion("UPDATE_TIME =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(String value) {
            addCriterion("UPDATE_TIME <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(String value) {
            addCriterion("UPDATE_TIME >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(String value) {
            addCriterion("UPDATE_TIME >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(String value) {
            addCriterion("UPDATE_TIME <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(String value) {
            addCriterion("UPDATE_TIME <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLike(String value) {
            addCriterion("UPDATE_TIME like", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotLike(String value) {
            addCriterion("UPDATE_TIME not like", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<String> values) {
            addCriterion("UPDATE_TIME in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<String> values) {
            addCriterion("UPDATE_TIME not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(String value1, String value2) {
            addCriterion("UPDATE_TIME between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(String value1, String value2) {
            addCriterion("UPDATE_TIME not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}